package com.auto.survey.measurecontroller.entity
/** 盘位枚举类，定义盘左和盘右两种状态 */
enum class Face(val code: String, val desc: String) {
    LEFT("0", "盘左"),
    RIGHT("1", "盘右");

    companion object {
        fun fromCode(code: String): Face {
            return when (code) {
                LEFT.code -> LEFT
                RIGHT.code -> RIGHT
                else -> throw IllegalArgumentException("无效的盘位代码: $code")
            }
        }
    }
}